package com.parkclouds.portal.web.sys;

import com.parkclouds.api.commom.base.Result;
import com.parkclouds.api.commom.bean.BizResult;
import com.parkclouds.api.commom.service.sys.SysOpService;
import com.parkclouds.api.commom.service.sys.dto.SysOpDTO;
import com.parkclouds.api.commom.service.sys.param.QuerySysOpReq;
import com.parkclouds.portal.common.BaseController;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Copyright: Copyright (c) 2017  zteits
 *
 * @ClassName: SysOpController.java
 * @Description:
 * @version: v1.0.0
 * @author: wangfs
 * @date: 2019-04-23 18:37
 * Modification History:
 * Date             Author          Version            Description
 * ---------------------------------------------------------*
 * 2019-04-23     wangfs              v1.0.0               创建
 */
@Api(value = "用户管理", description = "用户管理")
@RestController
@RequestMapping("/user")
public class SysOpController  extends BaseController {

    @Autowired
    private SysOpService sysOpService;


    @PostMapping("/queryTradeCategory")
    @ApiOperation("查询用户")
    public Result<SysOpDTO> querySysOp(@RequestBody QuerySysOpReq req ) {

        BizResult<SysOpDTO> sysOpDTOBizResult = sysOpService.querySysOp(req);

        return new Result<SysOpDTO>(sysOpDTOBizResult);
    }
}
